#include "eeprom.h"
 
 
void AT24C16_WriteOneByte(uint8_t data,uint8_t addr)
{
	HAL_I2C_Mem_Write(&hi2c1,0XA0,addr,1,&data,1,500);
}
 
void AT24C16_ReadData(uint16_t addr,uint16_t len,uint8_t *p)
{
	HAL_I2C_Mem_Read(&hi2c1,0XA1,addr,1,p,len,500);
} 
 

void AT24C16_WriteData(uint16_t addr,uint16_t len,uint8_t *p)
{
	HAL_I2C_Mem_Write(&hi2c1,0XA0,addr,1,p,len,500);
}
 




